Skip to content

Fix inspect highlighter crash on float rects and add --show-parents#3

Open
xiahan4956 wants to merge 1 commit intoeeejay:mainfrom
xiahan4956:fix/inspect-parents-and-highlighter-crash
Open

Fix inspect highlighter crash on float rects and add --show-parents#3
xiahan4956 wants to merge 1 commit intoeeejay:mainfrom
xiahan4956:fix/inspect-parents-and-highlighter-crash

Conversation

@xiahan4956
Copy link

@xiahan4956 xiahan4956 commented Mar 9, 2026

Summary

  • fix a crash in inspect highlighter by converting AX frame float values to ints before calling Qt drawRect
  • add --show-parents option to pyax inspect
  • when enabled, print selected element -> parent -> ... -> app root chain

Why

  • current inspect can crash with TypeError in Qt when AX frame values are floats
  • CLI currently prints only the selected element; parent-chain navigation is missing

Notes

  • existing inspect behavior is unchanged unless --show-parents is passed
  • verified pyax inspect --help shows the new option

feat: add --show-parents option to inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant